package com.hd.sup.modules.vehicle.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author chentl123
 * @since 2020-12-28
 */
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sp_vehicle_daily_statis")
public class VehicleDailyStatis extends Model<VehicleDailyStatis> {

    private static final long serialVersionUID = 1L;

    public VehicleDailyStatis(String startDateStr, String endDateStr, String currentDate) {
        this.startDateStr = startDateStr;
        this.endDateStr = endDateStr;
        this.currentDate = currentDate;
    }

    /**
     * 业务id
     */
    private String id;
    /**
     * 统计日期
     */
    @TableField("statis_date")
    private Date statisDate;
    /**
     * 车辆在线总数
     */
    @TableField("online_sum")
    private Long onlineSum;
    /**
     * 车辆上线总数
     */
    @TableField("go_online_sum")
    private Long goOnlineSum;
    /**
     * 运输类型
     */
    @TableField("trans_type")
    private String transType;
    /**
     * 报警车辆数
     */
    @TableField("alarm_vehicle_num")
    private Long alarmVehicleNum;
    /**
     * 车辆总数
     */
    @TableField("vehicle_sum")
    private Long vehicleSum;
    /**
     * 企业编号
     */
    @TableField("enterprise_no")
    private String enterpriseNo;
    /**
     * 企业名称
     */
    @TableField("enterprise_name")
    private String enterpriseName;
    /**
     * 行政编码
     */
    @TableField("region_code")
    private String regionCode;
    /**
     * 组织机构id
     */
    @TableField("dept_id")
    private String deptId;


    /**
     * 筛选开始时间
     */
    @TableField(exist = false)
    private String startDateStr;
    /**
     * 筛选结束时间
     */
    @TableField(exist = false)
    private String endDateStr;
    /**
     * 当前筛选日期
     */
    @TableField(exist = false)
    private String currentDate;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
